package net.xi.news.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 视频实体类
 */
@Data
@TableName("t_video")
public class Video {

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 标题
     */
    private String title;

    /**
     * 视频类型
     */
    private Integer type;
    /**
     * 0 草稿 1 发布
     */
    private Integer status;

    private String context;
    /**
     * 封面
     */
    private String imagesurl;

    /**
     * 视频URL
     */
    private String url;

    /**
     * 视频时长 s
     */
    private Integer time;
    /**
     * 视频播放量
     */
    private Integer views=0;
    /**
     * 视频大小 M
     */
    private Float length;

    /**
     * 视频名字 带后缀
     */
    private String videoname;


    private String username;

    private Long userid;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private SysUser user;

    @TableField(exist = false)
    private String typename;

    //    前端遍历序号
    @TableField(exist = false)
    private String cont;

    @TableField(exist = false)
    private String description;
}
